
// 开发状态
export const WxPRO = false

export const serverURL = 'https://xxxx'

export const WxAppId = 'xxx'
export const WxRedirect = 'xxx'
export const WxSource = 'xxx';


// IM AppId
export const IMAppId = 12345

/** 服务地址 */
export function baseURL(url){
	return `${serverURL}/${url}`
}

/** 上传地址 */
export const uploadURL = `https://xxxx/oss/cos/upload`

/** 上传认证 */
export const uploadAuthURL = 'https://xxxx/oss/cos/auth'

export const SET_TOKEN_INFO = 'SET_TOKEN_INFO'
/** 用户信息 */
export const SET_USER_INFO = 'SET_USER_INFO'
/** 列表 */
export const GET_COMPANY_TYPES = 'GET_COMPANY_TYPES'
export const GET_BRAND_LIST = 'GET_BRAND_LIST'
export const GET_EXPRESS_LIST = 'GET_EXPRESS_LIST'
export const GET_BRAND_BRANCHS = 'GET_BRAND_BRANCHS'
export const GET_TASK_TYPES = 'GET_TASK_TYPES'
export const GET_PUBLIC_LIST = 'GET_PUBLIC_LIST'
/** 订单 */
export const GET_ORDER_LIST = 'GET_ORDER_LIST'
export const GET_ORDER_DETAIL = 'GET_ORDER_DETAIL'

export const SAVE_ORDER_PRICE = 'SAVE_ORDER_PRICE' 			// 订单价格

export const GET_CHAT_LIST = 'GET_CHAT_LIST'
export const GET_CHAT_USER = 'GET_CHAT_USER'
export const GET_CARRY_GOODS = 'GET_CARRY_GOODS' 				//专线货物重抛货判断
export const GET_GOODS_PREMIUM = 'GET_GOODS_PREMIUM' 		// 保价费
export const SET_PREVIOUS_ORDER = 'SET_PREVIOUS_ORDER' 	// 预下单info


/** 条件筛选 */
export const SET_CONDITION_STATE = 'SET_CONDITION_STATE'
export const SET_CONDITION_TYPE = 'SET_CONDITION_TYPE'
export const SET_CONDITION_BRAND = 'SET_CONDITION_BRAND'
export const SET_CONDITION_BRANCH = 'SET_CONDITION_BRANCH'
export const SET_CONDITION_TIME = 'SET_CONDITION_TIME'

/** 订单选择 */
export const ORDER_CONDITION_TASK = 'ORDER_CONDITION_TASK'
export const ORDER_CONDITION_BRAND = 'ORDER_CONDITION_BRAND'
export const ORDER_CONDITION_BRANCH = 'ORDER_CONDITION_BRANCH'

/**message */
export const UPDATE_MESSAGE_LIST = 'UPDATE_MESSAGE_LIST'

/** 匹配专线、机场 */
export const GET_MATCH_AIRPORT = 'GET_MATCH_AIRPORT'
export const GET_MATCH_SPECIAL_LINE = 'GET_MATCH_SPECIAL_LINE'
export const GET_CITY_AIRPORT = 'GET_CITY_AIRPORT'

/** 地址薄 */
export const SET_ADDRESS_BOOK = 'SET_ADDRESS_BOOK'
export const GET_ADDRESS_INFO = 'GET_ADDRESS_INFO'
export const GET_ADDRESS_LIST = 'GET_ADDRESS_LIST'
export const DEL_ADDRESS_BOOK = 'DEL_ADDRESS_BOOK'
export const EDIT_ADDRESS_INFO = 'EDIT_ADDRESS_INFO'


/** 订单状态 */
export const orderStateList = [
	{id: 'all', name: '全部'},
	{id: 'waiting', name: '等待接单'},
	{id: 'receive', name: '已接单'},
	{id: 'finish', name: '待确认'},
	{id: 'confirm', name: '已评价'},
	{id: 'close', name: '已关闭'},
]

/** 时效 */
export const agingData = {
	air_traffic: [
		{id: 'today', name: '今日达'},
		{id: 'tomorrow', name: '次日达'},
	],
	special_line_traffic: [
		{id: 'spell_order', name: '拼单发货'},
		{id: 'direct_order', name: '直接发货'},
	],
}

/** 寄件方式 */
export const sendMethodList = [
	{id: 'send_bourn', name: '送货到港'},
	{id: 'visit_goods', name: '上门取件'},
]

/** 派送方式 */
export const receiveMethodList = [
	{id: 'self_goods', name: '自提'},
	{id: 'send_goods', name: '送货'},
]

/** 空运派送方式 */
export const airReceiveMethodList = [
	{id: 'self_goods', name: '机场自提'},
	{id: 'send_goods', name: '送货'},
]

/** 是否异形 */
export const shapeTypeList = [
	{id: 0, name: '非异形'},
	{id: 1, name: '异形'},
]

/** 订单状态 */
export const orderState = {
	wait_taking: '待接单',
	taking: '已接单',
	trafficing: '运输中',
	finish: '已完成',
	evaluate: '已评价',
	publish_cancel: '发单取消',
	taking_cancel: '接单取消',
	overtime_close: '超时关闭',
	system_close: '系统关单',
	fault_finish: '异常完结',
	goods_stop: '货物截留',
}

/** 运输类型文字 */
export const trafficText = {
	'air_traffic': '空运',
	'special_line_traffic': '专线',
}

/** 运输类型 */
export const trafficList = [
	{ code: 'air_traffic', name: '空运' },
	{ code: 'special_line_traffic', name: '专线' },
]